﻿html, body {
    height: 100%;
}

.draggableElement {
    padding: 10px;
}

/* Drop zone */
.draggableElement {
    border: 1px solid transparent;
    position: relative;
}

.draggableElement:hover, .editableLayoutContainer:hover {
    border-color: gray;
}

.draggableElement:hover > .toolbox,
.editableLayoutContainer:hover > .toolbox {
    display: block;
    z-index: 2;
}

.draggableElement:hover > .info,
.editableLayoutContainer:hover > .info {
    display: block;
}

.draggableElement {
    cursor: move;
    position: relative;
}

.draggableElement .overlay {
    background-color: #80808026;
    position: absolute;
    top: 0px;
    bottom: 0px;
    right: 0px;
    left: 0px;
    pointer-events: none;
}

.rowColumn {
    min-height: 150px;
}

.stepElement {
    background-color: white;
}

.stepElement,
.interactableElement {
    position: relative;
}

.interactableElement .zone,
.stepElement .zone {
    position: absolute;
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    z-index: 1;
}

.draggableElement .anchor {
    position: absolute;
    cursor: move;
    border-radius: 50%;
    background-color: white;
    border: 3px solid red;
    width: 10px;
    height: 10px;
}

.draggableElement .anchor:hover {
    border-color: green;
}

.draggableElement .anchor.top {
    top: 0px;
    left: 50%;
}

.draggableElement .anchor.right {
    top: 50%;
    left: 100%;
}

.draggableElement .anchor.bottom {
    top: 100%;
    left: 50%;
}

.draggableElement .anchor.left {
    top: 50%;
    left: 0;
}

.dropZone {
    height: 20px;
    background-color: #e1e1e1;
    border: 1px dashed black;
}

.dropZone.active,
.interactableElement .zone:hover,
.stepElement.isActive {
    border: 1px dashed green;
    background-color: rgba(226, 255, 226, 0.5);
}

/* Editable layout container */
.editableLayoutContainer {
    padding: 10px;
}

/* Metadata info */
.info {
    position: absolute;
    top: 0px;
    left: 0px;
    background-color: gray;
    color: white;
    display: none;
    z-index: 2;
}

/* Panel */
.panel-header {
    background-color: #ececec;
    padding: 10px;
    border-bottom: 1px solid gray;
}

.panel-content, .toolbar {
    padding: 20px;
}

/*Editor toolbar */
.toolbar {
    border-right: 1px solid #F1F1F1;
    -webkit-box-shadow: 5px 10px 5px 0px rgba(222,222,222,1);
    -moz-box-shadow: 5px 10px 5px 0px rgba(222,222,222,1);
    box-shadow: 5px 10px 5px 0px rgba(222,222,222,1);
}

.toolbar ul.elements {
    list-style-type: none;
    margin: 0;
    padding: 5px;
}

.toolbar ul.elements > li {
    padding: 5px 5px 5px 8px;
    border-radius: .3em;
    border: 1px solid #EEEEEE;
    margin-bottom: 2px;
    cursor: move;
}

.toolbar ul.elements > li.disabled {
    background: #efeeee;
    cursor: default !important;
}

.toolbar li > .icon {
    padding: 10px 4px 2px 4px;
    padding: 2px;
    border-radius: 5px;
    display: inline-block;
}

.toolbar li .text {
    padding-left: 10px;
}

.toolbar li > .icon,
.workflowEditor .toolbox li {
    background-color: #F1F1F1;
}

.header {
    text-align: center;
    border-bottom: 1px solid #F1F1F1;
    height: 50px;
    line-height: 50px;
}

/* Toolbox */
.toolbox .rz-button {
    pointer-events: auto !important;
}

.toolbox {
    display: block;
    z-index: 10;
}

.toolbox {
    position: absolute;
    top: 0px;
    right: 0px;
    display: none;
}

.toolbox.left {
    left: 0px;
    right: unset !important;
}

.toolbox > ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.toolbox > ul > li {
    padding-left: 2px;
    display: inline-block;
}

.toolbox .move {
    cursor: move;
}

.toolbox .remove {
    cursor: pointer;
}

/*Workflow editor*/

.navigator {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
}

.diagram-canvas {
    cursor: move !important;
}

#workflowEditor {
    width: 100%;
    height: 800px;
    border: 1px solid black;
}

.diagram-node .toolbox {
    display: none;
    position: absolute;
    top: 0px;
    right: 0px;
}

.diagram-node.selected .toolbox {
    display: block;
}

.step-chooser, .step-selected {
    background-color: white;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    padding: 5px;
}

g.diagram-link path:not(.selection-helper) {
    stroke-dasharray: 5;
    animation: dash .5s linear infinite;
}

.step-chooser {
    width: 200px;
    height: 70px;
}

.step-selected {
    width: 200px;
    height: 25px;
}

.step-selected.blocked {
    background-color: #ececec !important;
}

.step-selected, final-step {
    display: relative;
}

.final-step .lck {
    font-family: var(--rz-icon-font-family);
    font-size: 16pt;
}

.step-selected > .blocked-overlay {
    position: absolute;
    top: 5px;
    right: 5px;
}

@keyframes dash {
    to {
        stroke-dashoffset: -10;
    }
}

/*Hitbox*/
.hitbox {
    visibility: hidden;
    pointer-events: all !important;
}

/* Common */
.fullWidth {
    width: 100%;
}

.fullHeight {
    height: 100%;
}

.container {
    padding: 5px;
}

.jsonEditor, .cssEditor {
    height: 600px;
}

.httpRequestEditor {
    height: 200px;
}

.jsonPathEditor {
    height: 40px;
    padding-top: 10px;
    padding-left: 5px;
}

.clickable {
    cursor: pointer !important;
}
